package com.lcx.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/** 
 * @Description  
 * @version 1.0 
 * @author lcx
 * @date 2025/2/9 11:25
 */
@Data
@Component
@TableName(value = "`comment`")
public class Comment {
    /**
     * 评论编号
     */
    @TableId(value = "comment_id", type = IdType.INPUT)
    private Long commentId;

    /**
     * 所属用户编号
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 评论内容
     */
    @TableField(value = "comment_content")
    private String commentContent;

    /**
     * 所属电影编号
     */
    @TableField(value = "movie_id")
    private Long movieId;

    /**
     * 评论时间
     */
    @TableField(value = "comment_time")
    private Date commentTime;
    //用户头像 user_headImg
    @TableField(value = "user_headImg")
    private String userHeadImg;
    // 用户姓名 user_name
    @TableField(value = "user_name")
    private String userName;

    private User commentUser;//所属用户；

}